package com.jrx.anytxn.accounting.job.voucherFile.step;

import com.jrx.anytxn.accounting.entity.GaVoucherInfo;
import com.jrx.anytxn.accounting.service.IVoucherInfoService;
import org.springframework.batch.item.ItemProcessor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class VoucherFileProcessor implements ItemProcessor<GaVoucherInfo, String> {

    @Autowired
    private IVoucherInfoService voucherInfoService;

    @Override
    public String process(GaVoucherInfo item) throws Exception {
        return voucherInfoService.getVoucherFileMeaage(item);
    }
}
